package com.srwl.mytx.widget;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by dahai2070 on 2017/6/2 0002.
 */

public class DialogItem implements Parcelable {

    private  String dialogItemName;

    private  int dialogItemIconID;

    public int getDialogItemIconID() {
        return dialogItemIconID;
    }

    public void setDialogItemIconID(int dialogItemIconID) {
        this.dialogItemIconID = dialogItemIconID;
    }

    public String getDialogItemName() {
        return dialogItemName;
    }

    public void setDialogItemName(String dialogItemName) {
        this.dialogItemName = dialogItemName;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.dialogItemName);
        dest.writeInt(this.dialogItemIconID);
    }

    public  DialogItem() {


    }

    public DialogItem(int dialogItemIconID, String dialogItemName) {
        this.dialogItemIconID = dialogItemIconID;
        this.dialogItemName = dialogItemName;
    }

    protected DialogItem(Parcel in) {
        this.dialogItemName = in.readString();
        this.dialogItemIconID = in.readInt();
    }

    public static final Creator<DialogItem> CREATOR = new Creator<DialogItem>() {
        @Override
        public DialogItem createFromParcel(Parcel source) {
            return new DialogItem(source);
        }

        @Override
        public DialogItem[] newArray(int size) {
            return new DialogItem[size];
        }
    };
}
